package cn.mw.cmdb.controller;

import cn.mw.microMonitorCommon.api.common.BaseApiService;
import cn.mw.microMonitorCommon.api.common.ResponseBase;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/status")
public class ServiceStatusController extends BaseApiService {

    @Operation(summary = "检测服务是否存活")
    @GetMapping("/health")
    public ResponseBase<String> health() {
        return setResultSuccess("ok");
    }
}
